package ar.edu.utn.frsf.tpae.a2013.g04.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import ar.edu.utn.frsf.tpae.a2013.g04.persistence.dao.CentroCostoDAO;
import ar.edu.utn.frsf.tpae.a2013.g04.persistence.model.CentroCosto;
import ar.edu.utn.frsf.tpae.a2013.g04.service.CentroCostoService;

public class CentroCostoServiceImp implements CentroCostoService{

	private CentroCostoDAO ccoDAO;
	
	public CentroCostoDAO getCcoDAO() {
			return ccoDAO;	
	}
	
	@Autowired(required = true)
	public void setCcoDAO(CentroCostoDAO ccoDAO) {
			this.ccoDAO = ccoDAO;
	}
	
	@Override
	public List<CentroCosto> listar() {
			return ccoDAO.listar();	
	}

}
